<?php

if ($_F->compareToken($token, $SESSION_ALL_EXCUTE)) {
    $arr = explode('@', $data1);
    $wheres = "";
    $i = 2;
    $or = "";
    foreach ($arr as $val) {
        if ($i == count($arr)) {
            $or = "";
        } else {
            $or = " or ";
        }
        if ($val) {
            $where .= "uid ='{$val}' {$or}";
        }
        $i++;
    }
    $r->update($TABLE, "where {$where}", "board_table='delete',mod_date=now()"); //글제거


    echo"<div style=\"text-align: center; color: blue;\">----  삭제했습니다.----<br><input type=\"image\" src=\"$FOLDER_PATH/img/bt_list.gif\" value=\"돌아가기\" onClick=\"bbs.swapPage('$PAGE_LIST','$layer_id'); return false;\"></div>";
    $r->db->close();
} else {
    throw new Exception("<br>method : " . __METHOD__ . "<br>token 불일치");
}





